package com.ruoyi.behindTreatment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.behindTreatment.mapper.yyyTreatmentMapper;
import com.ruoyi.behindTreatment.domain.yyyTreatment;
import com.ruoyi.behindTreatment.service.IyyyTreatmentService;

/**
 * 就诊总览Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class yyyTreatmentServiceImpl implements IyyyTreatmentService 
{
    @Autowired
    private yyyTreatmentMapper yyyTreatmentMapper;

    /**
     * 查询就诊总览
     * 
     * @param treatId 就诊总览主键
     * @return 就诊总览
     */
    @Override
    public yyyTreatment selectyyyTreatmentByTreatId(Long treatId)
    {
        return yyyTreatmentMapper.selectyyyTreatmentByTreatId(treatId);
    }

    /**
     * 查询就诊总览列表
     * 
     * @param yyyTreatment 就诊总览
     * @return 就诊总览
     */
    @Override
    public List<yyyTreatment> selectyyyTreatmentList(yyyTreatment yyyTreatment)
    {
        return yyyTreatmentMapper.selectyyyTreatmentList(yyyTreatment);
    }

    /**
     * 新增就诊总览
     * 
     * @param yyyTreatment 就诊总览
     * @return 结果
     */
    @Override
    public int insertyyyTreatment(yyyTreatment yyyTreatment)
    {
        return yyyTreatmentMapper.insertyyyTreatment(yyyTreatment);
    }

    /**
     * 修改就诊总览
     * 
     * @param yyyTreatment 就诊总览
     * @return 结果
     */
    @Override
    public int updateyyyTreatment(yyyTreatment yyyTreatment)
    {
        return yyyTreatmentMapper.updateyyyTreatment(yyyTreatment);
    }

    /**
     * 批量删除就诊总览
     * 
     * @param treatIds 需要删除的就诊总览主键
     * @return 结果
     */
    @Override
    public int deleteyyyTreatmentByTreatIds(Long[] treatIds)
    {
        return yyyTreatmentMapper.deleteyyyTreatmentByTreatIds(treatIds);
    }

    /**
     * 删除就诊总览信息
     * 
     * @param treatId 就诊总览主键
     * @return 结果
     */
    @Override
    public int deleteyyyTreatmentByTreatId(Long treatId)
    {
        return yyyTreatmentMapper.deleteyyyTreatmentByTreatId(treatId);
    }
}
